package com.xqboss.apps.mapper.marketing;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xqboss.apps.domain.marketing.MarketingAirdropRecord;
import com.xqboss.apps.dto.marketing.AppGetAirdropListDto;
import com.xqboss.apps.dto.marketing.GetAirdropRecordListDto;
import com.xqboss.apps.vo.marketing.AirdropRecordVo;
import com.xqboss.apps.vo.marketing.AppAirdropRecord2Vo;
import com.xqboss.apps.vo.marketing.AppAirdropRecordVo;

import java.util.List;

/**
 * @author Trent
 * @date 2023/9/1
 */
public interface MarketingAirdropRecordMapper extends BaseMapper<MarketingAirdropRecord> {

    /**
     * 获取空投的用户记录
     */
    List<AirdropRecordVo> getRecordByAirdropId(GetAirdropRecordListDto params);

    /**
     * 获取用户空投记录
     * @param params
     * @return
     */
    List<AppAirdropRecordVo> getUserRecordList(AppGetAirdropListDto params);

    /**
     * 获取用户空投详情
     * @param airdropRecordId
     * @return
     */
    AppAirdropRecordVo getUserRecordById(Long airdropRecordId);

    List<AppAirdropRecord2Vo> listV2(AppGetAirdropListDto params);

    AppAirdropRecord2Vo getUserRecordV2ById(Long recordId);
}
